package com.lingyun.ucm.web.mvc.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * 
 * @author Terrence2013
 * 2018年1月24日 上午9:48:40
 * TODO
 */
public class H2Util {
	
	private H2Util(){};
	
    public static Connection getConnection() throws SQLException {
    	try {
			Class.forName("org.h2.Driver");
		} catch (ClassNotFoundException e) {
			//异常不处理
		}
        return DriverManager.getConnection("jdbc:h2:tcp://localhost/mem:common;DB_CLOSE_DELAY=-1","admin","admin");
    }

}
